<!DOCTYPE html>
<html>
<head>
    <title>出差申请单</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" type="text/css" href="/general/erp5/public/static/layui/css/layui.css">
    <link rel="stylesheet" href="/general/erp4/static/layui/css/default.css?t=1586046995308" media="all">
    <link rel="stylesheet" type="text/css" href="/general/erp5/public/static/layui/css/customer.css">
</head>
<body>
<div class="layui-fluid" id="LAY-component-grid-list">
    <div id="body_box" class="layui-row layui-col-space10 demo-list">
        <h2 style = "width: 100%;text-align: center;margin-bottom: 10px;margin-top: 10px;padding-bottom: 10px;border-bottom: 1px solid #000000;">销售人员客户洽谈纪要</h2>
        <form class="layui-form" action="" style = "padding-top: 10px;">
            <input type = "hidden" name = "nid" value = "{$detail['0']['id']}">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">日期</label>
                    <div class="layui-input-inline">
                        <div class="layui-input-inline">
                            <input type="text" name="write_time" lay-verify="date" id = "test1" autocomplete="off" placeholder="yyyy-mm-dd" class="layui-input" value = "{$detail['0']['write_time']}" disabled>
                        </div>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">单号</label>
                    <div class="layui-input-inline">
                        <div class="layui-input-inline">
                            <input type="text" name="order_id" autocomplete="off" placeholder="项目/合同单号" class="layui-input" value = "{$detail['0']['order_id']}" disabled>
                        </div>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">出差申请单号</label>
                    <div class="layui-input-inline">
                        <div class="layui-input-inline">
                            <input type="text" name="apply_num" autocomplete="off" placeholder="项目/合同单号" class="layui-input" value = "{$detail['0']['apply_num']}" disabled>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">客户类型</label>
                    <div class="layui-input-inline">
                        <input type="checkbox" name="customer_type[]" lay-skin="primary" disabled value = "已签约客户"  title="已签约客户" {if $detail['0']['customer_type'] == '已签约客户'} checked="" {/if}>
                        <input type="checkbox" name="customer_type[]" lay-skin="primary" disabled value = "潜在客户-前期开发" title="潜在客户-前期开发" {if $detail['0']['customer_type'] == "潜在客户-前期开发"} checked="" {/if}>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">客户来源</label>
                    <div class="layui-input-inline">
                        <input type="text" name="customer_src" autocomplete="off" class="layui-input" value = "{$detail['0']['customer_src']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">客户类别</label>
                    <div class="layui-input-inline">
                        <input type="text" name="customer_category" autocomplete="off" class="layui-input" value = "{$detail['0']['customer_category']}" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">客户公司名称</label>
                    <div class="layui-input-inline">
                        <input type="text" name="company" class="layui-input" value = "{$detail['0']['company']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">洽谈形式</label>
                    <div class="layui-input-inline">
                        <input type="text" name="talk_type" autocomplete="off" class="layui-input" value = "{$detail['0']['talk_type']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">洽谈时间</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="talk_time" autocomplete="off" id = "test2" autocomplete="off" placeholder="yyyy-mm-dd" class="layui-input" value = "{$detail['0']['talk_time']}" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">公司地点</label>
                <div class="layui-input-block">
                    <textarea name = "company_place" placeholder="请输入内容" class="layui-textarea">{$detail['0']['company_place']}</textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">客户行业</label>
                    <div class="layui-input-inline">
                        <input type="text" name="customer_trade" autocomplete="off" class="layui-input" value = "{$detail['0']['customer_trade']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">客户区域</label>
                    <div class="layui-input-inline">
                        <input type="text" name="customer_place" autocomplete="off" class="layui-input" value = "{$detail['0']['customer_place']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">销售人员</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="salers" autocomplete="off" class="layui-input" value = "{$detail['0']['salers']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">协作人</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="cooper_user" autocomplete="off" class="layui-input" value = "{$detail['0']['cooper_user']}" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">第几次洽谈</label>
                    <div class="layui-input-inline">
                        <input type="number" name="talk_num" autocomplete="off" class="layui-input" value = "{$detail['0']['talk_num']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">第一联系人</label>
                    <div class="layui-input-inline">
                        <input type="text" name="contact1" autocomplete="off" class="layui-input" value = "{$detail['0']['contact1']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">职务</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="contact1_job" autocomplete="off" class="layui-input" value = "{$detail['0']['contact1_job']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">联系手机</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="contact1_tel" autocomplete="off" class="layui-input" value = "{$detail['0']['contact1_tel']}" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">客户地址</label>
                    <div class="layui-input-inline">
                        <input type="text" name="customer_address"  autocomplete="off" class="layui-input" value = "{$detail['0']['customer_address']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">第二联系人</label>
                    <div class="layui-input-inline">
                        <input type="text" name="contact2"  autocomplete="off" class="layui-input" value = "{$detail['0']['contact2']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">职务</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="contact2_job" autocomplete="off" class="layui-input" value = "{$detail['0']['contact2_job']}" disabled>
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">联系手机</label>
                    <div class="layui-input-inline">
                        <input type="tel" name="contact2_tel" autocomplete="off" class="layui-input" value = "{$detail['0']['contact2_tel']}" disabled>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">客户洽谈全部参与人员及职位</label>
                <div class="layui-input-block">
                    <textarea name = "customer_all" placeholder="请输入内容" class="layui-textarea">{$detail['0']['customer_all']}</textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">永冠洽谈全部参与人员</label>
                <div class="layui-input-block">
                    <textarea name = "staff_all" placeholder="请输入内容" class="layui-textarea">{$detail['0']['staff_all']}</textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">洽谈主题</label>
                <div class="layui-input-block">
                    <textarea name = "subject" placeholder="请输入内容" class="layui-textarea">{$detail['0']['subject']}</textarea>
                </div>
            </div>
            <p>产品议题（客户意向/产品类别/年需求量/永冠订单占比/产品要求/技术参数/等）</p>
            <div class="layui-form-item">
                <label class="layui-form-label"></label>
                <div class="layui-inline">
                    <table class="layui-table" lay-filter="test">
                        <colgroup>
                            <col width="150">
                            <col width="100">
                            <col width="100">
                            <col width="200">
                            <col width="550">
                            <col width="150">
                        </colgroup>
                        <thead>
                        <tr>
                            <th style="display: none">序号</th>
                            <th style = "text-align: center;">需求产品</th>
                            <th style = "text-align: center;">年需求量</th>
                            <th style = "text-align: center;">永冠配额占比</th>
                            <th style = "text-align: center;">是否需要认证</th>
                            <th style = "text-align: center;">技术要求、参数：</th>
<!--                            <th style="text-align: center"><button type="button" class="layui-btn layui-btn-sm add-btn">添加</button></th>-->
                        </tr>
                        </thead>
                        <tbody class="addlists">
                        {foreach $products as $key => $value}
                        <tr>
                            <td style="display: none">
                                <input type="text" name="number[]" value="1">
                            </td>
                            <td>
                                <input type="text" name="product_name[]" class="layui-input" value = "{$value['product_name']}">
                            </td>
                            <td>
                                <input type="text" name="need_num[]" class="layui-input" value = "{$value['need_num']}">
                            </td>
                            <td>
                                <input type="text" name="quota_scale[]" class="layui-input" value = "{$value['quota_scale']}">
                            </td>
                            <td>
                                <input type="checkbox" name="need_verify[]" lay-skin="primary" {if $value['need_verify'] == '1'} checked {/if} value = "1"  title="需要">
                                <input type="checkbox" name="need_verify[]" lay-skin="primary" {if $value['need_verify'] == '2'} checked {/if} value = "2" title="不需要">
                            </td>
                            <td>
                                <input type="text" name="demand[]" class="layui-input" value = "{$value['demand']}">
                            </td>
<!--                            <td style="text-align: center"><button type="button" class="layui-btn layui-btn-sm layui-btn-danger btn-del" lay-event="del">删除</button></td>-->
                        </tr>
                        {/foreach}
                        </tbody>
                    </table>
                </div>
            </div>
            <p>碰到的技术或质量问题</p>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <textarea name="content1" placeholder="请输入内容" class="layui-textarea">{$detail['0']['content1']}</textarea>
                </div>
            </div>
            <p>客户现有供应商情况（公司名称/合作时间/价格/品质/和客户工作人员的关系情况等）</p>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <textarea name="content2" placeholder="请输入内容" class="layui-textarea">{$detail['0']['content2']}</textarea>
                </div>
            </div>
            <p>合作方式/价格/付款方式/运输/交货时间/佣金等</p>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <textarea name="content3" placeholder="请输入内容" class="layui-textarea">{$detail['0']['content3']}</textarea>
                </div>
            </div>
            <p>其他商谈内容</p>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <textarea name="content4" placeholder="请输入内容" class="layui-textarea">{$detail['0']['content4']}</textarea>
                </div>
            </div>
            <div class="layui-form-item" style = "margin-top: 10px;">
                <div class="layui-input-block">
                    <a class="layui-btn layui-btn-sm" href="/general/erp5/public/tripapi/negotiation/managersalershow/">返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
</body>
<script type="text/javascript" src = "/general/erp5/public/static/layui/layui.all.js"></script>
<script src="/general/erp5/public/static/layui/trip/jquery.min.js"></script>
<script type="text/javascript" src = "/general/erp5/public/static/layui/trip/negotiation/tripchat.js?v=1111"></script>
<script src="/general/erp5/public/static/layui/trip/negotiation/indexsaler.js"></script>
</html>